package com.lgy.springclou.service;

import com.lgy.springclou.service.impl.PaymentFeignServiceImpl;
import com.lgy.springclou.util.R;
import com.netflix.ribbon.proxy.annotation.Hystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "cloud-hystrix-payment-service",fallback = PaymentFeignServiceImpl.class)
public interface PaymentFeignService {
    @GetMapping("/pay")
    public R list();

    @GetMapping("/pay/feign/timeout")
    public String payFeignTimeout();
}
